package com.itheima.mm.dao;

import com.itheima.mm.entity.QueryPageBean;
import com.itheima.mm.pojo.Catalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CatalogDao {
    List<Catalog> findListByCourseId(@Param("id") Integer id);

    Catalog findListById(@Param("id")Integer catalogId);

    List<Catalog> findListByPage(@Param("queryPageBean") QueryPageBean queryPageBean);

    Long findTotal(@Param("queryPageBean") QueryPageBean queryPageBean);

    void add(@Param("catalog") Catalog catalog);

    Integer findCatalogQty(@Param("id") Integer id);

    void delete(@Param("id") Integer catalogId);
}
